package com.example.service;

import com.example.dto.DishFlavorsDTO;
import com.example.mybatis.service.CrudService;
import com.example.dto.ZyFlavorsDTO;
import com.example.entity.FlavorsEntity;

import java.util.List;

/**
 * 口味表
 *
 * @author yyyyjinying 1020066395@qq.com
 * @since 1.0-SNAPSHOT 2025-04-29
 */
public interface FlavorsService extends CrudService<FlavorsEntity, ZyFlavorsDTO> {
  void save(ZyFlavorsDTO dto);

  List<DishFlavorsDTO> flavorsByDishId(Long dishId);

  void saveAndUpdateFlavor(Long dishId, List<DishFlavorsDTO> flavorsList);
}